<template>
  <div class="interview-coaching-container">
    <!-- 顶部横幅 -->
    <div class="coaching-banner">
      <div class="banner-content">
        <h1><i class="fas fa-user-tie"></i> 面试辅导中心</h1>
        <p class="banner-subtitle">全方位提升您的面试表现，助力职业发展</p>
        <div class="banner-stats">
          <div class="stat-item">
            <div class="stat-value">92%</div>
            <div class="stat-label">用户满意度</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">3.5K+</div>
            <div class="stat-label">成功案例</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">85%</div>
            <div class="stat-label">面试通过率提升</div>
          </div>
        </div>
      </div>
    </div>

    <!-- 主要功能模块 -->
    <div class="coaching-features">
      <div class="section-header">
        <h2><i class="fas fa-star"></i> 核心功能</h2>
        <p class="section-subtitle">我们提供的专业面试辅导工具</p>
      </div>

      <div class="feature-cards">
        <!-- AI模拟面试 -->
        <div class="feature-card">
          <div class="card-icon">
            <i class="fas fa-robot"></i>
          </div>
          <div class="card-content">
            <h3>AI模拟面试</h3>
            <p class="card-description">
              与智能面试官进行真实场景模拟，体验各类面试题型，获得即时反馈
            </p>
            <ul class="feature-list">
              <li><i class="fas fa-check"></i> 多种职位类型选择</li>
              <li><i class="fas fa-check"></i> 实时语音和内容分析</li>
              <li><i class="fas fa-check"></i> 个性化难度调整</li>
            </ul>
            <router-link to="/AISimulation" class="start-btn">
              <i class="fas fa-play"></i> 开始模拟
            </router-link>
          </div>
        </div>

        <!-- 报告分析 -->
        <div class="feature-card">
          <div class="card-icon">
            <i class="fas fa-chart-bar"></i>
          </div>
          <div class="card-content">
            <h3>面试报告分析</h3>
            <p class="card-description">
              深入分析您的面试表现，识别优势和改进点，提供专业建议
            </p>
            <ul class="feature-list">
              <li><i class="fas fa-check"></i> 详细能力维度评估</li>
              <li><i class="fas fa-check"></i> 语音和内容质量分析</li>
              <li><i class="fas fa-check"></i> 个性化改进方案</li>
            </ul>
            <router-link to="/analyse" class="start-btn">
              <i class="fas fa-file-alt"></i> 查看报告
            </router-link>
          </div>
        </div>

        <!-- 记录分析 -->
        <div class="feature-card">
          <div class="card-icon">
            <i class="fas fa-history"></i>
          </div>
          <div class="card-content">
            <h3>面试记录分析</h3>
            <p class="card-description">
              追踪您的面试历史，分析进步趋势，优化长期面试策略
            </p>
            <ul class="feature-list">
              <li><i class="fas fa-check"></i> 历史记录可视化</li>
              <li><i class="fas fa-check"></i> 能力进步追踪</li>
              <li><i class="fas fa-check"></i> 成功率分析</li>
            </ul>
            <router-link to="/report" class="start-btn">
              <i class="fas fa-chart-line"></i> 查看记录
            </router-link>
          </div>
        </div>
      </div>
    </div>

    <!-- 成功案例 -->
    <div class="success-cases">
      <div class="section-header">
        <h2><i class="fas fa-medal"></i> 成功案例</h2>
        <p class="section-subtitle">看看其他用户如何通过我们的辅导获得成功</p>
      </div>

      <div class="case-studies">
        <div class="case-card">
          <div class="case-header">
            <div class="case-avatar">
              <i class="fas fa-user-graduate"></i>
            </div>
            <div class="case-info">
              <h3>张同学</h3>
              <p class="case-position">前端开发工程师</p>
            </div>
          </div>
          <div class="case-content">
            <p class="case-quote">
              "通过AI模拟面试发现了自己在系统设计方面的不足，经过针对性练习，最终成功获得了心仪的offer！"
            </p>
            <div class="case-stats">
              <div class="case-stat">
                <div class="stat-value">8.2 → 9.1</div>
                <div class="stat-label">得分提升</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">3周</div>
                <div class="stat-label">准备时间</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">通过</div>
                <div class="stat-label">面试结果</div>
              </div>
            </div>
          </div>
        </div>

        <div class="case-card">
          <div class="case-header">
            <div class="case-avatar">
              <i class="fas fa-user-tie"></i>
            </div>
            <div class="case-info">
              <h3>李女士</h3>
              <p class="case-position">产品经理</p>
            </div>
          </div>
          <div class="case-content">
            <p class="case-quote">
              "报告分析帮助我发现了沟通表达中的问题，经过改进后，面试官反馈我的回答更加清晰有条理了。"
            </p>
            <div class="case-stats">
              <div class="case-stat">
                <div class="stat-value">7.5 → 8.7</div>
                <div class="stat-label">得分提升</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">2周</div>
                <div class="stat-label">准备时间</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">通过</div>
                <div class="stat-label">面试结果</div>
              </div>
            </div>
          </div>
        </div>

        <div class="case-card">
          <div class="case-header">
            <div class="case-avatar">
              <i class="fas fa-user-graduate"></i>
            </div>
            <div class="case-info">
              <h3>王同学</h3>
              <p class="case-position">数据分析师</p>
            </div>
          </div>
          <div class="case-content">
            <p class="case-quote">
              "历史记录分析让我清晰地看到了自己的进步轨迹，增强了面试信心，最终获得了比预期更好的offer！"
            </p>
            <div class="case-stats">
              <div class="case-stat">
                <div class="stat-value">6.8 → 8.4</div>
                <div class="stat-label">得分提升</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">1个月</div>
                <div class="stat-label">准备时间</div>
              </div>
              <div class="case-stat">
                <div class="stat-value">通过</div>
                <div class="stat-label">面试结果</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 使用指南 -->
    <div class="usage-guide">
      <div class="section-header">
        <h2><i class="fas fa-book-open"></i> 使用指南</h2>
        <p class="section-subtitle">如何充分利用面试辅导中心</p>
      </div>

      <div class="guide-steps">
        <div class="step-card">
          <div class="step-number">1</div>
          <div class="step-content">
            <h3>开始模拟面试</h3>
            <p>
              选择您想练习的职位类型和难度级别，与AI面试官进行真实模拟。系统会记录您的回答并进行全面分析。
            </p>
          </div>
        </div>

        <div class="step-card">
          <div class="step-number">2</div>
          <div class="step-content">
            <h3>查看详细报告</h3>
            <p>
              面试结束后，系统会生成详细报告，包括能力评估、语音分析和改进建议。仔细阅读并理解您的优势和不足。
            </p>
          </div>
        </div>

        <div class="step-card">
          <div class="step-number">3</div>
          <div class="step-content">
            <h3>针对性练习</h3>
            <p>
              根据报告中的建议，针对薄弱环节进行练习。可以重复模拟面试，或使用我们的专项训练资源。
            </p>
          </div>
        </div>

        <div class="step-card">
          <div class="step-number">4</div>
          <div class="step-content">
            <h3>追踪进步</h3>
            <p>
              定期查看您的面试记录分析，了解自己的进步趋势。调整练习策略，持续提升面试表现。
            </p>
          </div>
        </div>
      </div>
    </div>

    <!-- 开始行动 -->
    <div class="call-to-action">
      <h2>准备好提升您的面试表现了吗？</h2>
      <p>立即开始您的第一次AI模拟面试，发现潜在问题并获得专业建议</p>
      <router-link to="/AISimulation" class="cta-btn">
        <i class="fas fa-play"></i> 开始免费模拟
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'InterviewCoaching',
  mounted() {
    document.title = '面试辅导中心 - AI面试助手'
  }
}
</script>

<style scoped>
.interview-coaching-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  color: #2c3e50;
  font-family: 'Segoe UI', 'PingFang SC', sans-serif;
}

.coaching-banner {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border-radius: 10px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.coaching-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.coaching-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.banner-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.banner-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-header h2 i {
  margin-right: 0.8rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.coaching-features {
  margin-bottom: 4rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e0e0e0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #3498db;
  font-size: 1.8rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.card-description {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.feature-list i {
  color: #2ecc71;
  margin-right: 0.5rem;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3498db;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

.start-btn:hover {
  background-color: #2980b9;
}

.start-btn i {
  margin-right: 0.5rem;
}

.success-cases {
  margin-bottom: 4rem;
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
}

.case-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.case-avatar {
  width: 50px;
  height: 50px;
  background-color: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #3498db;
  font-size: 1.5rem;
}

.case-info h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #2c3e50;
}

.case-position {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
}

.case-quote {
  font-style: italic;
  color: #2c3e50;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
}

.case-quote::before,
.case-quote::after {
  content: '"';
  color: #3498db;
  font-size: 1.5rem;
  line-height: 0;
}

.case-quote::before {
  margin-right: 0.3rem;
}

.case-quote::after {
  margin-left: 0.3rem;
}

.case-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #e0e0e0;
  padding-top: 1rem;
}

.case-stat {
  text-align: center;
}

.case-stat .stat-value {
  font-weight: bold;
  color: #2c3e50;
}

.case-stat .stat-label {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.usage-guide {
  margin-bottom: 4rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.step-content {
  margin-top: 1rem;
}

.step-content h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.step-content p {
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
}

.call-to-action {
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.call-to-action h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.call-to-action p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2ecc71;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #27ae60;
}

.cta-btn i {
  margin-right: 0.8rem;
}

@media (max-width: 768px) {
  .coaching-banner {
    padding: 2rem 1rem;
  }
  
  .banner-content h1 {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .banner-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .call-to-action h2 {
    font-size: 1.5rem;
  }
  
  .call-to-action p {
    font-size: 1rem;
  }
  
  .cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
</style>
